package main

import (
	"fmt"
)

func main() {
	// 定义并初始化为可读可写
	var channel1 chan int
	// 定义并初始化为只写
	var channel2 chan<- int
	//定义并初始化为只读
	var channel3 <-chan int
	channel1 = make(chan int, 25)
	channel2 = make(chan int, 25)
	channel3 = make(chan int, 25)

	fmt.Printf("make--ch addr %v \n", channel1)
	fmt.Printf("make--ch addr %v \n", channel2)
	fmt.Printf("make--ch addr %v \n", channel3)

}
